import server from "../../utils/axios.js";
/**
 * @description 用户
 */
export default class System1 {
  constructor() {}
  /**
   * @description 得到用户List
   */
  static async get(search = "", notuid = "") {
    let result = await server(this.name, "Get", { search, notuid });
    return result;
  }
  /**
   * @description 得到用户List
   */
  static async Save(data) {
    let result = await server(this.name, "Save", { data });
    return result;
  }
  /**
   * @description 用户登录
   */
  static async Login({ username, psw }) {
    let result = await server(this.name, "Login", { username, psw });
    return result;
  }
  /**
   * @description 用户按钮权限
   */
  static async getBtnPermission(MenuId) {
    let result = await server(this.name, "GetBtnPermission", { MenuId });
    return result;
  }
}
